-- GENERATED SPELL FOR [Spitelash Warrior] --


function spell0_6190(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6190', 5313, 1)
end

function spell1_6190(pUnit, Event) --@Polymorph Backfire,n/a--
pUnit:FullCastSpellOnTarget(28406,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6190', 8269, 1)
end

function Sorts_6190(pUnit, Event)
local choix_sorts_6190 = math.random(0, 1)
if choix_sorts_6190 == 0 then
pUnit:RegisterEvent('spell0_6190', 1, 1)
end
if choix_sorts_6190 == 1 then
pUnit:RegisterEvent('spell1_6190', 1, 1)
end
end

function mob6190_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6190', math.random(1500, 3000), 1)
end

function mob6190_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6190_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6190_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6190, 1, 'mob6190_Action')
RegisterUnitEvent(6190, 2, 'mob6190_Leave')
RegisterUnitEvent(6190, 3, 'mob6190_Kill')
RegisterUnitEvent(6190, 4, 'mob6190_Die')
